# ！/home/yang/PythonProjects python
# -*- coding: utf-8 -*-
# author:yang  time:19-7-25 下午2:34


# def odd():
#     n = 1
#     while True:
#         yield n
#         n += 2
#
#
# odd_num = odd()
# num_list = []
# for i in odd_num:
#     num_list.append(i)
#     if len(num_list) == 1000:
#         print(num_list)
#         break
#
# sum_num = 0
# for i in num_list:
#     sum_num += i
# print(sum_num)
#
#
# print(sum(num_list))

# a = sum([i for i in range(1000000000)])
# print(a)

b = sum(i for i in range(1000000000))
print(b)
